package com.wngbms.gatewaydemo;

import com.wngbms.gatewaydemo.handler.bizhandler.OkhttpDoHttpInboundHandler;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.List;

public class NettyServerStarter {

    public static void main(String[] args) throws InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, IOException {

//        List<String> proxyServer = Arrays.asList("http://localhost:8091", "http://localhost:8092");
        List<String> proxyServer = Arrays.asList("http://localhost:8001");
        NettyHttpServer nettyHttpServer = new NettyHttpServer(9092,
                proxyServer, OkhttpDoHttpInboundHandler.class);
        nettyHttpServer.start();
    }

}
